package cn.itsource.org.ro;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

@Data
public class LoginRo {
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @NotEmpty(message = "密码不能为空")
    private String password;
    @Range(min = 0,max = 1,message = "非法请求")
    private Integer type;
    /**
     * 如果isCheckPassword 为true 表示 必须验证密码
     */
    private Boolean isCheckPassword = true;
}

